package org.lixf.io.utility;

public class IOTest {
    public static void main(String[] args) {
        //long start = System.currentTimeMillis();
        //IOUtility.copyFileByByte("./test4.pdf", "C:/Users/final/Desktop/test2.pdf");
        //long endRead = System.currentTimeMillis();
        //IOUtility.copyFileByByteLength("./test4.pdf", "C:/Users/final/Desktop/test3.pdf");
        //long endRead1 = System.currentTimeMillis();
        //System.out.println(endRead - start);
        //System.out.println(endRead1 - endRead);
        String base64String = IOUtility.fileToBase64("./test5.jpg");
        System.out.println(base64String);
        IOUtility.base64ToFile(base64String, "C:/Users/final/Desktop/test3copy.jpg");
    }
}
